import { Component } from '@tarojs/taro';
import { View , Image  } from '@tarojs/components';
import { baseImgSrc , toLogin } from '../../util/util';
import { AtButton } from 'taro-ui';
import './nologin.scss';
export default class NoLogin extends Component {
    static options = {
        addGlobalClass: true
    }
    constructor(){
        super(...arguments);
    }
    render(){
        return (
            <View className='nologin'>
                <Image className='logo-img' src={`${baseImgSrc}/logo.png`} />
                <AtButton className='nologinbtn' type='primary' onClick={toLogin}>登录</AtButton>
            </View>
        )
    } 
}